


<!DOCTYPE html>
<html id="htmlId">
<head>
  <title>Coverage Report > CollisionMap</title>
  <style type="text/css">
    @import "../../css/coverage.css";
    @import "../../css/highlight-idea.css";
  </style>
  <script type="text/javascript" src="../../js/highlight.pack.js"></script>
</head>

<body>
<div class="content">
<div class="breadCrumbs">
Current scope:     <a href="../../index.html">all classes</a>
    <span class="separator">|</span>
    <a href="../index.html">nl.tudelft.jpacman.level</a>
</div>

<h1>Coverage Summary for Class: CollisionMap (nl.tudelft.jpacman.level)</h1>

<table class="coverageStats">
<tr>
  <th class="name">Class</th>
</tr>
<tr>
  <td class="name">CollisionMap</td>
</tr>

</table>

<br/>
<br/>


<pre>
<div class="sourceCode" id="sourceCode"><i class="no-highlight">1</i>&nbsp;package nl.tudelft.jpacman.level;
<i class="no-highlight">2</i>&nbsp;
<i class="no-highlight">3</i>&nbsp;import nl.tudelft.jpacman.board.Unit;
<i class="no-highlight">4</i>&nbsp;
<i class="no-highlight">5</i>&nbsp;/**
<i class="no-highlight">6</i>&nbsp; * A table containing all (relevant) collisions between different types of
<i class="no-highlight">7</i>&nbsp; * units.
<i class="no-highlight">8</i>&nbsp; *
<i class="no-highlight">9</i>&nbsp; * @author Jeroen Roosen 
<i class="no-highlight">10</i>&nbsp; */
<i class="no-highlight">11</i>&nbsp;public interface CollisionMap {
<i class="no-highlight">12</i>&nbsp;
<i class="no-highlight">13</i>&nbsp;    /**
<i class="no-highlight">14</i>&nbsp;     * Collides the two units and handles the result of the collision, which may
<i class="no-highlight">15</i>&nbsp;     * be nothing at all.
<i class="no-highlight">16</i>&nbsp;     *
<i class="no-highlight">17</i>&nbsp;     * @param &lt;C1&gt;
<i class="no-highlight">18</i>&nbsp;     *            The collider type.
<i class="no-highlight">19</i>&nbsp;     * @param &lt;C2&gt;
<i class="no-highlight">20</i>&nbsp;     *            The collidee (unit that was moved into) type.
<i class="no-highlight">21</i>&nbsp;     *
<i class="no-highlight">22</i>&nbsp;     * @param collider
<i class="no-highlight">23</i>&nbsp;     *            The unit that causes the collision by occupying a square with
<i class="no-highlight">24</i>&nbsp;     *            another unit already on it.
<i class="no-highlight">25</i>&nbsp;     * @param collidee
<i class="no-highlight">26</i>&nbsp;     *            The unit that is already on the square that is being invaded.
<i class="no-highlight">27</i>&nbsp;     */
<i class="no-highlight">28</i>&nbsp;    &lt;C1 extends Unit, C2 extends Unit&gt; void collide(C1 collider, C2 collidee);
<i class="no-highlight">29</i>&nbsp;
<i class="no-highlight">30</i>&nbsp;}
</div>
</pre>
</div>

<script type="text/javascript">
(function() {
    var msie = false, msie9 = false;
    /*@cc_on
      msie = true;
      @if (@_jscript_version >= 9)
        msie9 = true;
      @end
    @*/

    if (!msie || msie && msie9) {
        var codeBlock = document.getElementById('sourceCode');

        if (codeBlock) {
            hljs.highlightBlock(codeBlock);
        }
    }
})();
</script>

<div class="footer">
    
    <div style="float:right;">generated on 2022-05-22 18:55</div>
</div>
</body>
</html>
